package com.niuwa.p2p.service.exchange;

import java.math.BigDecimal;
import java.util.List;

import com.niuwa.p2p.core.mvc.entity.JsonResult;
import com.niuwa.p2p.entity.business.InvestTrans;
import com.niuwa.p2p.entity.business.LoanClaim;

/**
 * 结标
 * @title IFinishProductService.java
 *
 * @author liuhuan
 * @version 1.0
 * @created 2015年4月27日
 */
public interface IFinishProductService {

	/**
	 * 结标操作
	 * @param loanClaim : projectNo
	 * @param platForm: APP,P2P
	 * @param feeType: CHANNEL,APP
	 */
	public JsonResult saveFinishProduct(LoanClaim loanClaim,String platForm, String feeType) throws Exception;
	
	/**
	 * 获取服务费
	 * @param lc : projectNo
	 * @param platForm: APP,P2P
	 * @throws Exception
	 */
	public BigDecimal saveAndGetServiceFee(LoanClaim lc,String platForm) throws Exception;
	/**
	 * 结标公共部分
	 * @param lc : projectNo
	 * @param platForm :APP,P2P
	 * @param serviceFee: 服务费
	 * @return
	 * @throws Exception
	 */
	public JsonResult saveCommon(String projectNo, long loanUserId, BigDecimal amount, List<InvestTrans> transList,String platForm, BigDecimal serviceFee) throws Exception;
}
